// 统一管理接口
import requst from "../requst/request";
import qs from "qs";

export const JingPinAPI = () => requst.get("/products/recommend");

// 发送注册短信验证码的请求
export const SendSMSAPI = (params) =>
  requst.post("/sendSMS", qs.stringify(params));
// console.log("/sendSMS", qs.stringify());

// 发送手机号登录的请求
export const PhoneReginAPI = (params) =>
  requst.post("/phoneRegin", qs.stringify(params));

//   微信扫码登录
export const weixinLoginAPI = (params) =>
  requst.post("/wechatUsers/PCLogin", qs.stringify(params));

// 加入购物车 /shop/carts/add
export const CarsAddAPI = (params) =>
  request.post("/shop/carts/add", qs.stringify(params));

//   /products
export const ProductsAPI = (params) => requst.get("/products", params);
